import sys
sys.path.append("H:\\anacoda\\Lib\\site-packages")
import pandas as pd

def getPbLess4AndNotSt(pan):
    list = []
    pdH = pan.loc[0]
    vl = float(pdH['pbMRQ'])
    st=float(pdH['isST'])
    code=pdH['code']
    if(vl >3.0 and vl<4.0and st==0.0):
        srts=code+" "+"pbMRQL: "+str(vl)+"\n"
        with open("out.txt","a") as f:
            f.write(srts) #这句话自带文件关闭功能，不需要再写f.close()

